1 | public class TreeNode { |
94. 中序遍历
1 | public static List<Integer> inorderTraversal(TreeNode root) { |
144. 前序遍历
1 | public static List<Integer> preorderTraversal(TreeNode root) { |
145. 后序遍历
1 | public static List<Integer> postorderTraversal(TreeNode root) { |
1 | public class TreeNode { |
1 | public static List<Integer> inorderTraversal(TreeNode root) { |
1 | public static List<Integer> preorderTraversal(TreeNode root) { |
1 | public static List<Integer> postorderTraversal(TreeNode root) { |